﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using GestionEducativa.Models;

namespace GestionEducativa.Controllers
{
    public class HerramientasController : Controller
    {
        //
        // GET: /Herramientas/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Conceptos()
        {
            return View();
        }
        [HttpPost]
        public ActionResult Conceptos(string concepto,string monto)
        {
            if (!string.IsNullOrWhiteSpace(concepto) && !string.IsNullOrWhiteSpace(monto))
            {
                return
                    Json(ConceptosViewModel.InsertarConceptoDetalle(concepto, Convert.ToDecimal(monto)));
            }
            return
                Json("v");
        }

        public ActionResult Roles()
        {
            return View();
        }

    }
}
